/**
 * @判断一个是奇数还是偶数
 *
 * @author	 wangshikun <wangshikun2010@gmail.com>
 * @copyright	(c) 2012 wangshikun <wangshikun2010@gmail.com>
 * @license	http://www.opensource.org/licenses/mit-license.php The MIT License
 * @package	default
 * @subpackage	default
 */

#include <stdio.h>
#include <cs50.h>
#include <stdlib.h>

int main(int argc, char *argv[]) {
	int i, n;

	printf("Enter your number to be tested: ");
	scanf("%d", &i);

	n = i % 2;

	if (n == 0) {
		printf("The number is even\n");
	} else {
		printf("The number is odd\n");
	}
}
